import request from '@/utils/request.js'
// 登录_账号密码登录
export function login(query) {
    return request({
        headers: {
            // #ifdef MP-WEIXIN
            reqtype: "mini",
            // #endif
            // #ifndef MP-WEIXIN
            reqtype: uni.getStorageSync('platform') == 'ios' ? 'IOS' : 'Android'
            // #endif
        },
        url: '/joining/partner.Member/login',
        method: 'post',
        params: query
    })
}
// 退出
export function logout(query) {
    return request({
        headers: {
            // #ifdef MP-WEIXIN
            reqtype: "mini",
            // #endif
            // #ifndef MP-WEIXIN
            reqtype: uni.getStorageSync('platform') == 'ios' ? 'IOS' : 'Android'
            // #endif
        },
        url: '/joining/partner.Member/loginout',
        method: 'post',
        params: query
    })
}
// 账户信息设置
export function getInfo(query) {
    return request({
        url: '/elder/api.Member/getUser',
        method: 'post',
        params: query
    })
}